package booroo.basic;

import java.util.Scanner;

public class J06_NumberPyramid {

	public static void main(String[] args) {
		Scanner sc = null;
		int i = 1;
		int j = 1;
		int k;
		sc = new Scanner(System.in);
		System.out.println("e");
		k = sc.nextInt();
		sc.close();
		
		while ( j <= k){
			i = k;
			while ( i >= 1){
			if ( i > j){
				System.out.print("  ");
			}
			else System.out.print(" "+i);
			i--;
			}
			
			System.out.print(" ");
			
			i = 2;
			while (i <= j){
				System.out.print(i + " ");
				i++;
			}
			System.out.println();
			j++;
			}
	}
}
